| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | 'use strict'; |
||
| 3 | module.exports = function (gulp, paths, plugins, options) { |
||
|
|
|||
| 4 | return function () { |
||
| 5 | return gulp.src(paths.IMAGE_PATH + ['**/*.*']) |
||
| 6 | .pipe(plugins.debug({title: 'files:'})) |
||
| 7 | .pipe(plugins.imagemin({ |
||
| 8 | progressive: true, |
||
| 9 | svgoPlugins: [{removeViewBox: false}], |
||
| 10 | use: [plugins.pngquant()] |
||
| 11 | })) |
||
| 12 | .pipe(gulp.dest(paths.DIST_PATH + 'images')) |
||
| 13 | .pipe(plugins.browserSync.reload({stream: true})) |
||
| 14 | }; |
||
| 15 | }; |
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.